package pres.man.interview.simple;

/**
 * TCF执行顺序
 * @author MAN
 * @date 2020-12-05 21:33
 * @project
 * @since
 */
public class TCFOrder {
    public static void main(String[] args) {
        System.out.println("return :" + tcf());
    }

    public static int tcf() {
        int i = 0;
        try {
            i++;
            System.out.println("try :" + i);
            return i;
        } catch (Exception e) {
            i++;
            System.out.println("catch : " + i);
        } finally {
            i++;
            System.out.println("finally : " + i);
        }
        return i;
    }
}
